#!/bin/bash

if [ -z $1 ] ; then
  echo "Usage: upload_snapshot.sh <rev num>"
  exit 0
fi

set -x

ver=$1

dname=libdgnsc-r$ver
tname=$dname.tar.gz

svn export -r $ver https://libdgnsc.googlecode.com/svn/trunk $dname
tar czf $tname $dname
rm -rf $dname
./googlecode_upload.py -u drangon.mail -p libdgnsc -s $dname $tname
rm $tname

